--FrameRaidDetails.lua

local theFrame = nil

function SNFCreateRaidDetailsFrame()

--[[	if theFrame then return end

	theFrame = CreateFrame("Frame", nil, UIParent)
	local f = theFrame
	f:SetFrameStrata("BACKGROUND")
	f:SetWidth(200)
	f:SetHeight(100)
	--f:Show()

	_G["SNFFrameRaidDetails"]:Show()
	]]
	local w = 300;
	local h = 200;
--	local mw = 200;
--	local mh = 100

	local f=CreateFrame("FRAME","testaddon_Frame",UIParent);
	f:SetWidth(w); f:SetHeight(h);
	f:SetPoint("CENTER",UIParent);
--	f:SetPoint("TOP",UIParent);
--	f:SetPoint("LEFT",UIParent);
	f:SetMovable(1);
	f:SetResizable(1);
--	f:SetMaxResize(mw, mh);
	f:EnableMouse(1);
	f:RegisterForDrag("LeftButton");

	f:SetScript("OnDragStart", function(self) self:StartMoving() end)
--	f:SetScript("OnDragStart", function(self) self:StartSizing() end)
	f:SetScript("OnDragStop", function(self) self:StopMovingOrSizing() end)

	f:SetBackdrop({
		  bgFile="Interface\\Tooltips\\UI-Tooltip-Background",
		  edgeFile="Interface\\Tooltips\\UI-Tooltip-Border",
		  tile=1, tileSize=10, edgeSize=10,
		  insets={left=3, right=3, top=3, bottom=3}
	});

	local fs = f:CreateFontString("$parentText","ARTWORK","GameFontNormal");
	fs:SetAllPoints();--UnitName("player")..
	fs:SetText("THIS IS A TEST");

	local cl = CreateFrame( "Button", "$parent_CloseButton", f, "UIPanelCloseButton" );
	cl:SetPoint("TOPRIGHT", f);

	return f

end

function SNFGetRaidDetailsFrame()
	return theFrame
end